<%@ page import="ar.com.photo_admin.domain.Message"%>
<!doctype html>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="layout" content="main">

<!-- CSS to style the autocomplete feature -->
<link rel="stylesheet"
	href="${resource(dir:'css',file:'jquery-ui-1.9.2.custom.css')}"
	type="text/css" />

</head>
<body>
	<div class="container">

		<div class="page-header">
			<h1>
				<g:message code="messages.new" />
			</h1>
		</div>

		<g:if test="${flash.message}">
			<div class="alert alert-success">
				<a class="close" data-dismiss="alert">×</a>
				${flash.message}
			</div>
		</g:if>
		
		<g:if test="${flash.error}">
			<div class="alert alert-error">
				<a class="close" data-dismiss="alert">×</a>
				${flash.error}
			</div>
		</g:if>

		<g:render template="sendMessageForm" model="${[showTo: true, showBack:true, formController:'message', formAction:'sendMessage'  ]}" />
	</div>

	<div class="separator"></div>
</body>
</html>